import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import App from './App.vue';
import axios from 'axios';
import router from './router.js'; 

// 设置 Axios 默认后端路径
axios.defaults.baseURL = 'http://localhost:8080'; 

const app = createApp(App);
app.config.globalProperties.$axios = axios; // 全局挂载 Axios
app.use(ElementPlus);
app.use(router); 
app.mount('#app');
